package com.taotao.manage.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * 复制页面跳转
 * @author 铭
 *
 */

@RequestMapping("page")
@Controller
public class PageController {
	/**
	 * 一个通用的页面跳转方法，根据名字进行跳转
	 * @param pageName
	 * @return
	 */
	@RequestMapping(value="{pageName}",method=RequestMethod.GET)
	public String toPage(@PathVariable("pageName")String pageName) {
		return pageName;
		
	}
}
